# -*- coding: utf-8 -*-
# @Time    : 2022/6/23 15:10
# @Author  : zyw
# @Email   : panda_kings@163.com
# @File    : course_fields.py
from flask_restful import fields

tag_fields = {
    'id':fields.Integer,
    'tag_name': fields.String,
    'sequence': fields.Integer
}
course_fields = {
    'id': fields.Integer,
    'course_name': fields.String,
    'course_type':fields.Integer,
    'attention': fields.Integer,
    'learner': fields.Integer,
    'course_img':fields.String,
    'course_status':fields.Integer,
    'create_time': fields.DateTime,
    'course_introduce': fields.String
}

chapter_fields = {
    'id':fields.Integer,
    'title': fields.String,
    'serial_num': fields.Integer,
    # 'sections': fields.Integer
}

sections_fields = {
    'id':fields.Integer,
    'section_title': fields.String,
    'serial_num': fields.Integer,
    'learn_time': fields.Float,
    'video_url': fields.String,
    'like_count':fields.Integer
}

comment_fields = {
    'id': fields.Integer,
    'user': fields.Integer,
    'comment_time': fields.DateTime,
    'comment_content': fields.String,
    'zan_num': fields.Integer,
    'parent_id': fields.Integer,
    'course': fields.Integer,
    'reply_count': fields.Integer,
    'is_top': fields.Boolean
}